package cn.zh.mapper;

import cn.zh.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    List<User> searchUsers(String username);

    void insertUser(User user);

    User selectUserByUsername(String username);

    User selectUserById(Integer id);

    void updateUser(User user);

    void deleteUser(@Param("ids") Integer[] ids);

    void updatePassword(@Param("id") Integer id,@Param("password") String md5Password);

    void editPersonalPassword(@Param("newPassword") String newPassword, @Param("id") Long id);
}
